//
//  NetworkConstants.h
//  HelloWorld
//
//  Created by Martin Le C. on 5/13/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
// -----Header constants
// -----Note: between versions 10 and 12 the version field appears to have 
// -----swapped endian-ness, from 0x0a00 to 0x000c
extern UInt8 const PROTOCOL;	// Protocol version 10 (YMSG 10)
extern UInt8 const MAGIC[4];
extern UInt8 const VERSION[4];
extern UInt8 const VERSION_HTTP[4];
extern NSInteger const YMSG9_HEADER_SIZE;
extern NSString* const  CLIENT_VERSION;

// -----File transfer
/* Now the property ymsg.network.httpFileTransferHost, accessed via Util.class
public extern NSString* const FILE_TF_HOST = "filetransfer.msg.yahoo.com";
public extern NSString* const FILE_TF_URL = "http://"+FILE_TF_HOST+":80/notifyft";
*/
extern NSString* const FILE_TF_PORTPATH;
extern NSString* const FILE_TF_USER;

// -----HTTP
extern NSString* const USER_AGENT;
extern NSString* const END;	// Line terminator

// -----HTTP proxy property names
extern NSString* const PROXY_HOST_OLD;
extern NSString* const PROXY_PORT_OLD;
extern NSString* const PROXY_HOST;
extern NSString* const PROXY_PORT;
extern NSString* const PROXY_SET;
extern NSString* const PROXY_NON;

// -----SOCKS proxy property names
extern NSString* const SOCKS_HOST;
extern NSString* const SOCKS_PORT;
extern NSString* const SOCKS_SET;

// -----Cookies in array (see Session.getCookies())
extern NSInteger const COOKIE_Y;
extern NSInteger const COOKIE_T;
extern NSInteger const COOKIE_C;

// -----Default timouts (seconds)
extern NSInteger const LOGIN_TIMEOUT;

// -----Ping timeout
extern NSInteger const PING_TIMEOUT;	// 20 minutes


// -----Chat server

// -----Buzz string
extern NSString* const BUZZ;
